package com.xuzz.study.io.netty.rpc.consumer;


import com.xuzz.study.io.netty.rpc.inteface.HelloService;

/**
 * @author zhize.xu
 * @version 1.0
 * @ClassName:ClientBootstrap
 * @Description:
 * @date 2018/11/27 16:45
 */
public class Client {
    public static void main(String[] args) throws InterruptedException
    {

        HelloService helloService = (HelloService)RpcConsumer.choose(HelloService.class);
        for (; ; ) {
            Thread.sleep(1000);
            System.out.println(helloService.hello("are you ok ?"));
        }
    }
}
